<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/bootstrap.css">
    <link rel="stylesheet" href="/css/bootstrap-table.min.css">

    <script src="/js/jquery-3.3.1.js"></script>
    <script src="/js/bootstrap.bundle.min.js"></script>
    <script src="/js/bootstrap-table.min.js"></script>
    <script src="/js/bootstrap-table-zh-CN.min.js"></script>
    <script src="/js/tankai/Pet.js"></script>
<script>
$(function () {
let pet=JSON.parse(localStorage.getItem("pet"));
    let str = "<tr>\n" +
        "            <td>档案编号</td>\n" +
        "            <td>010003231203</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>产品名称</td>\n" +
        "            <td><input type='hidden' name='productname' value='" + pet.productname + "'>" + pet.productname + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>制造商</td>\n" +
        "            <td>" + pet.factoryname + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>I 级分类</td>\n" +
        "            <td>" + (pet.firstkindid=='01'?'电子':'') + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>II 级分类</td>\n" +
        "            <td>" + (pet.secondkindid=='01'?'计算机':'') + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>III 级分类</td>\n" +
        "            <td>" + (pet.thirdkindid=='01'?'服务器':'') + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>产品简称</td>\n" +
        "            <td>" + pet.productnick + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>用途类型</td>\n" +
        "            <td>" + (pet.type=='Y001-1'?'商品':pet.type=='Y001-2'?'物料':pet.type=='Y001-3'?'部件':pet.type=='Y001-4'?'委外部件':pet.type=='Y001-5'?'外购商品':pet.type=='Y001-6'?'受托产品':pet.type=='Y001-7'?'服务型产品':'') + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>档次级别</td>\n" +
        "            <td>" + (pet.personalunit=='D001-1'?'高档':pet.personalunit=='D001-2'?'中档':pet.personalunit=='D001-3'?'低档':'') + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>计量值</td>\n" +
        "            <td>" + pet.personalvalue + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>市场单价(元)</td>\n" +
        "            <td>" + pet.listprice + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>计划成本价(元)</td>\n" +
        "            <td>" + pet.costprice + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>保质期</td>\n" +
        "            <td>" + pet.warranty + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>替代品名称</td>\n" +
        "            <td>" + pet.twinname + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>替代品编号</td>\n" +
        "            <td>" + pet.twinid + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>生命周期(年)</td>\n" +
        "            <td>" + pet.lifecycle + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>单位</td>\n" +
        "            <td>" + pet.amountunit + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td class=\"text-right\">档案附件</td>\n" +
        "            <td colspan=\"3\" class=\"text-left\"></td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>供应商集合</td>\n" +
        "            <td>" + pet.providergroup + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>产品描述</td>\n" +
        "            <td>" + pet.productdescribe + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>产品经理</td>\n" +
        "            <td>" + pet.responsibleperson + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>登记人</td>\n" +
        "            <td>" + pet.register + "</td>\n" +
        "        </tr>" +
        "<tr>\n" +
        "            <td>复核人</td>\n" +
        "            <td>" + pet.checker + "</td>\n" +
        "        </tr>";

    $("#table").html(str);
})
function dj() {
    location.href="page.html";
}
</script>
</head>
<style>
    body {
        background-color: #d1ecf1;
    }

</style>
<body>
<div class="row" style="margin-top: 10px;">
    <div class="col text-left">
        <span style="color: #0c84ff;">你正在做的业务是：产品档案管理—产品档案登记复核-产品档案登记查询修改</span>
    </div>
</div>

<form id="form" action="/Dflile.do/upflie" method="post">
    <div class="row" style="margin-top: 10px;">
        <div class="col text-left">
            <span style="font-weight: 900;color: darkturquoise" class="h3">&nbsp;全部信息</span>
        </div>
        <div class="col text-right">
            <input type="submit" value="复核通过" class="btn btn-info">
            <input onclick="dj()" value="返回" class="btn btn-secondary">
            <span style="width: 50px;margin-left: 50px;">&nbsp;</span>
        </div>
    </div>
<div class="container">
    <table class="table table-info" id="table" >
    </table>
</div>
    </form>
</body>
</html>